<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
			<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>折扣类型：</label>
					<div class="col-sm-5">
						<ui-select ng-model="dplist.selected" theme="bootstrap">
						<ui-select-match placeholder="折扣类型">{{$select.selected.name}}</ui-select-match>
						<ui-select-choices
							repeat="ads in dplist | propsFilter:{name: $select.search}">
						<span ng-bind-html="ads.name | highlight: $select.search" ></span>
						</ui-select-choices> </ui-select>
					</div>
					<p>必填。</p>
			</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>基础票价：</label>
					<div class="col-sm-5">
					    <div class="input-group">
						   <input type="text" class="form-control" placeholder="基础票价" ng-model="param.data.price"  ng-pattern="/^\d+(\.\d+)?$/" required/>
						   <span class="input-group-addon">元</span>
						</div>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group" ng-if="!noDiscount">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>最低票价：</label>
					<div class="col-sm-5">
					   <div class="input-group">
						  <input type="text" class="form-control" placeholder="最低票价" ng-model="param.data.lowest" ng-pattern="/^\d+(\.\d+)?$/"  required/>
						  <span class="input-group-addon">元</span>
						</div>
					</div>
					<p>必填，站点折扣后不得低于此价格。为0不做限制。</p>
				</div>
				<div class="form-group" ng-if="noDiscount">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>最低票价：</label>
					<div class="col-sm-5">
					   <div class="input-group">
						  <input type="text" class="form-control" placeholder="最低票价" ng-model="param.data.price" ng-readonly="true"/>
						  <span class="input-group-addon">元</span>
						</div>
					</div>
					<p>必填，站点折扣后不得低于此价格。为0不做限制。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"><span style="color: red; text-align: center;" >* &nbsp</span>折扣参数：</label>
					<div class="col-sm-5">
					   <div class="input-group">
						  <input type="text" class="form-control" placeholder="折扣参数" ng-model="param.data.parameter" ng-pattern="/^\d+(\.\d+)?$/" required ng-readonly="noDiscount"/>
					      <span class="input-group-addon">元</span>
					    </div>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label"></label>
					<div class="col-sm-7">
					   <div class="input-group">
                           <button type="submit" class="btn btn-info" ng-click="calc()">计算价格</button>
                           <span style="margin-left: 7px">填写完毕后点此按钮查看各站点价格。</span>
					    </div>
					</div>
				</div>
				<div class="form-group"  ng-if="priceList!=''">
					<label class="col-sm-3 control-label">站点价格：</label>
					<div class="col-sm-7">
                       <p ng-repeat="p in priceList" >
                           {{p.address}} &nbsp {{p.price}}元
                       </p>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>